<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk">

<f:view>
<f:loadBundle var="text" basename="#{workQueueList.bundleName}"/>
    <head>
        <title>#{text['workQueueList.title']}</title>
        <meta name="heading" content="#{text['workQueueList.heading']}"/>
        <meta name="menu" content="WorkQueueMenu"/>
    </head>
		    <h:messages />
<body id="workQueueList">
<h:form id="editWorkQueue">

<t:dataTable id="workQueues" var="workQueue" style="margin-top: 10px"
    value="#{workQueueList.workQueues}" rows="25" sortColumn="#{workQueueList.sortColumn}"
    sortAscending="#{workQueueList.ascending}" styleClass="scrollerTable table"
    headerClass="standardTable_Header" rowClasses="standardTable_Row1,standardTable_Row2"
    columnClasses="standardTable_Column,standardTable_Column,standardTable_Column,standardTable_Column,standardTable_ColumnCentered">

    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="xh" arrow="true">
                <h:outputText value="#{text['workQueue.xh']}" />
            </t:commandSortHeader>
        </f:facet>
        <h:commandLink action="#{jbqkForm.edit}" value="#{workQueue.xh}">
            <f:param name="jbqkid" value="#{workQueue.jbqk.id}"/>
            <f:param name="from" value="list"/>
        </h:commandLink>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="isFinished" arrow="true">
                <h:outputText value="#{text['workQueue.isFinished']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{workQueue.isFinished}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
                <h:outputText value="#{text['jbqk.qyqc']}" />
        </f:facet>
        <h:outputText value="#{workQueue.jbqk.qyqc}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="operation" arrow="true">
                <h:outputText value="#{text['workQueue.operation']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{workQueue.operation}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="optdate" arrow="true">
                <h:outputText value="#{text['workQueue.optdate']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{workQueue.optdate}" escape="true"/>
    </t:column>
    <t:column>
        <f:facet name="header">
            <t:commandSortHeader columnName="username" arrow="true">
                <h:outputText value="#{text['workQueue.username']}" />
            </t:commandSortHeader>
        </f:facet>
    <h:outputText value="#{workQueue.username}" escape="true"/>
    </t:column>
</t:dataTable>

<ui:include src="/common/tableFooter.xhtml">
    <ui:param name="tableName" value="workQueues"/>
</ui:include>

<script type="text/javascript">
    highlightTableRows("editWorkQueue:workQueues");
</script>

</h:form>
</body>
</f:view>
</html> 